<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>数据导入</title>
		<script language="javascript" type="text/javascript" src="../script/common.js"></script>
		<!--动态js-->
		<script language="javascript" type="text/javascript">
	
			//全局变量
			var qt = {};				//数据表格对象
			var inited = false;			//初始化标志	
			//页面控件初始化
			function init(){	
				inited = true;
			}		
			function load(){
				Eui.showNavigation();
				if (!inited)
					init();		
			}
			//浏览
			function onLook(){
				var filepath = $("datafile").value;
				if(filepath != "")
					$('pp').innerHTML = "";
				else
					$('pp').innerHTML = "";
			}
			//<iframe id="propertyframe" style="width:100%;height:300px;overflow:auto" src='"+filepath+"'></iframe>
			//导入
			function onSave(){
				showInformation("数据导入成功!");
				$("cardabate").reset();
			}
		</script>
	</head>
	<body onload="load()">
	<!--页面导航-->
		<div class="nav"><div id="nav">&nbsp;</div></div>
		<div id="content">
			<!--明细(新增)静态页面部分-->
			<div id="detview">
				<form id="cardabate" name="cardabate" method="post">
					<input type="hidden" name="id">
					<input type="hidden" name="command" value="pp">
					<div class="form">
						<div class="formTitle">数据导入（CSV格式)</div>
						<table cellSpacing="0" cellPadding="4" width="100%" border="0">
							<tr> 
			  					<td>&nbsp;</td>
							</tr>
							<tr>
								<td>
									<label>选择文件</label>
									<input type="file" name="datafile" onchange="onLook()" onselect="onLook()" style="width:390px;">
									<button type="button" onclick="onSave()">导 入</button>
								</td>
							</tr>
							<tr> 
			  					<td>&nbsp;</td>
							</tr>
						</table>
					</div>
				</form>
			</div>
		</div>
	</body>
</html>